# -*- coding: utf-8 -*-

###########################################################################
## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc

###########################################################################
## Class CalculatorForm1
###########################################################################

class CalculatorForm1 ( wx.Frame ):

	def __init__( self, parent ):
		wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"Calculator1", pos = wx.DefaultPosition, size = wx.Size( 208,330 ), style = wx.DEFAULT_FRAME_STYLE^wx.MAXIMIZE_BOX^wx.RESIZE_BORDER|wx.TAB_TRAVERSAL )

		self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )
		self.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_INACTIVECAPTION ) )

		bSizer1 = wx.BoxSizer( wx.VERTICAL )

		sbSizer1 = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, wx.EmptyString ), wx.VERTICAL )

		self.m_txtDisplay = wx.TextCtrl( sbSizer1.GetStaticBox(), wx.ID_ANY, u"0", wx.DefaultPosition, wx.Size( 176,-1 ), wx.TE_RIGHT )
		self.m_txtDisplay.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )

		sbSizer1.Add( self.m_txtDisplay, 0, wx.ALL, 5 )

		bSizer2 = wx.BoxSizer( wx.VERTICAL )

		bSizer3 = wx.BoxSizer( wx.HORIZONTAL )

		bSizer3.SetMinSize( wx.Size( 400,50 ) )
		self.m_btnBackspace = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"X", wx.DefaultPosition, wx.Size( 36,36 ), 0 )
		self.m_btnBackspace.SetFont( wx.Font( 11, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )

		bSizer3.Add( self.m_btnBackspace, 0, wx.ALL, 5 )

		self.m_btnCE = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"CE", wx.DefaultPosition, wx.Size( 36,36 ), 0 )
		self.m_btnCE.SetFont( wx.Font( 11, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )

		bSizer3.Add( self.m_btnCE, 0, wx.ALL, 5 )

		self.m_btnC = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"C", wx.DefaultPosition, wx.Size( 36,36 ), 0 )
		self.m_btnC.SetFont( wx.Font( 11, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )

		bSizer3.Add( self.m_btnC, 0, wx.ALL, 5 )

		self.m_btnPM = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"±", wx.DefaultPosition, wx.Size( 36,36 ), 0 )
		self.m_btnPM.SetFont( wx.Font( 14, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )

		bSizer3.Add( self.m_btnPM, 0, wx.ALL, 5 )


		bSizer2.Add( bSizer3, 1, wx.EXPAND, 5 )

		bSizer4 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_btn7 = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"7", wx.DefaultPosition, wx.Size( 36,36 ), 0 )
		self.m_btn7.SetFont( wx.Font( 14, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )

		bSizer4.Add( self.m_btn7, 0, wx.ALL, 5 )

		self.m_btn8 = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"8", wx.DefaultPosition, wx.Size( 36,36 ), 0 )
		self.m_btn8.SetFont( wx.Font( 14, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )

		bSizer4.Add( self.m_btn8, 0, wx.ALL, 5 )

		self.m_btn9 = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"9", wx.DefaultPosition, wx.Size( 36,36 ), 0 )
		self.m_btn9.SetFont( wx.Font( 14, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )

		bSizer4.Add( self.m_btn9, 0, wx.ALL, 5 )

		self.m_btnPlus = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"+", wx.DefaultPosition, wx.Size( 36,36 ), 0 )
		self.m_btnPlus.SetFont( wx.Font( 20, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )

		bSizer4.Add( self.m_btnPlus, 0, wx.ALL, 5 )


		bSizer2.Add( bSizer4, 1, wx.EXPAND, 5 )

		bSizer5 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_btn4 = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"4", wx.DefaultPosition, wx.Size( 36,36 ), 0 )
		self.m_btn4.SetFont( wx.Font( 14, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )

		bSizer5.Add( self.m_btn4, 0, wx.ALL, 5 )

		self.m_btn5 = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"5", wx.DefaultPosition, wx.Size( 36,36 ), 0 )
		self.m_btn5.SetFont( wx.Font( 14, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )

		bSizer5.Add( self.m_btn5, 0, wx.ALL, 5 )

		self.m_btn6 = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"6", wx.DefaultPosition, wx.Size( 36,36 ), 0 )
		self.m_btn6.SetFont( wx.Font( 14, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )

		bSizer5.Add( self.m_btn6, 0, wx.ALL, 5 )

		self.m_btnMinus = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"-", wx.DefaultPosition, wx.Size( 36,36 ), 0 )
		self.m_btnMinus.SetFont( wx.Font( 17, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )

		bSizer5.Add( self.m_btnMinus, 0, wx.ALL, 5 )


		bSizer2.Add( bSizer5, 1, wx.EXPAND, 5 )

		bSizer6 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_btn1 = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"1", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_btn1.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_btn1.SetMinSize( wx.Size( 36,36 ) )

		bSizer6.Add( self.m_btn1, 0, wx.ALL, 5 )

		self.m_btn2 = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"2", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_btn2.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_btn2.SetMinSize( wx.Size( 36,36 ) )

		bSizer6.Add( self.m_btn2, 0, wx.ALL, 5 )

		self.m_btn3 = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"3", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_btn3.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_btn3.SetMinSize( wx.Size( 36,36 ) )

		bSizer6.Add( self.m_btn3, 0, wx.ALL, 5 )

		self.m_btnMulti = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"*", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_btnMulti.SetFont( wx.Font( 14, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_btnMulti.SetMinSize( wx.Size( 36,36 ) )

		bSizer6.Add( self.m_btnMulti, 0, wx.ALL, 5 )


		bSizer2.Add( bSizer6, 1, wx.EXPAND, 5 )

		bSizer7 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_btn0 = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"0", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_btn0.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_btn0.SetMinSize( wx.Size( 36,36 ) )

		bSizer7.Add( self.m_btn0, 0, wx.ALL, 5 )

		self.m_btnDot = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u".", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_btnDot.SetFont( wx.Font( 14, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_btnDot.SetMinSize( wx.Size( 36,36 ) )

		bSizer7.Add( self.m_btnDot, 0, wx.ALL, 5 )

		self.m_btnEqual = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"=", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_btnEqual.SetFont( wx.Font( 15, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_btnEqual.SetMinSize( wx.Size( 36,36 ) )

		bSizer7.Add( self.m_btnEqual, 0, wx.ALL, 5 )

		self.m_btnDiv = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"/", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_btnDiv.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_btnDiv.SetMinSize( wx.Size( 36,36 ) )

		bSizer7.Add( self.m_btnDiv, 0, wx.ALL, 5 )


		bSizer2.Add( bSizer7, 1, wx.EXPAND, 5 )


		sbSizer1.Add( bSizer2, 1, wx.EXPAND, 5 )


		bSizer1.Add( sbSizer1, 1, wx.EXPAND, 5 )


		self.SetSizer( bSizer1 )
		self.Layout()

		self.Centre( wx.BOTH )

		# Connect Events
		self.m_btnBackspace.Bind( wx.EVT_BUTTON, self.OnbtnBackSpaceCllick )
		self.m_btnCE.Bind( wx.EVT_BUTTON, self.OnbtnCEClick )
		self.m_btnC.Bind( wx.EVT_BUTTON, self.OnbtnCClick )
		self.m_btnPM.Bind( wx.EVT_BUTTON, self.OnbtnPMClick )
		self.m_btn7.Bind( wx.EVT_BUTTON, self.Onbtn7Click )
		self.m_btn8.Bind( wx.EVT_BUTTON, self.Onbtn8Click )
		self.m_btn9.Bind( wx.EVT_BUTTON, self.Onbtn9Click )
		self.m_btnPlus.Bind( wx.EVT_BUTTON, self.OnbtnPlusClick )
		self.m_btn4.Bind( wx.EVT_BUTTON, self.Onbtn4Click )
		self.m_btn5.Bind( wx.EVT_BUTTON, self.Onbtn5Click )
		self.m_btn6.Bind( wx.EVT_BUTTON, self.Onbtn6Click )
		self.m_btnMinus.Bind( wx.EVT_BUTTON, self.OnbtnMinusClick )
		self.m_btn1.Bind( wx.EVT_BUTTON, self.Onbtn1Click )
		self.m_btn2.Bind( wx.EVT_BUTTON, self.Onbtn2Click )
		self.m_btn3.Bind( wx.EVT_BUTTON, self.Onbtn3Click )
		self.m_btnMulti.Bind( wx.EVT_BUTTON, self.OnbtnMultiClick )
		self.m_btn0.Bind( wx.EVT_BUTTON, self.Onbtn0Click )
		self.m_btnDot.Bind( wx.EVT_BUTTON, self.OnbtnDotClick )
		self.m_btnEqual.Bind( wx.EVT_BUTTON, self.OnbtnEqualClick )
		self.m_btnDiv.Bind( wx.EVT_BUTTON, self.OnbtnDivClick )

	def __del__( self ):
		pass


	# Virtual event handlers, override them in your derived class
	def OnbtnBackSpaceCllick( self, event ):
		event.Skip()

	def OnbtnCEClick( self, event ):
		event.Skip()

	def OnbtnCClick( self, event ):
		event.Skip()

	def OnbtnPMClick( self, event ):
		event.Skip()

	def Onbtn7Click( self, event ):
		event.Skip()

	def Onbtn8Click( self, event ):
		event.Skip()

	def Onbtn9Click( self, event ):
		event.Skip()

	def OnbtnPlusClick( self, event ):
		event.Skip()

	def Onbtn4Click( self, event ):
		event.Skip()

	def Onbtn5Click( self, event ):
		event.Skip()

	def Onbtn6Click( self, event ):
		event.Skip()

	def OnbtnMinusClick( self, event ):
		event.Skip()

	def Onbtn1Click( self, event ):
		event.Skip()

	def Onbtn2Click( self, event ):
		event.Skip()

	def Onbtn3Click( self, event ):
		event.Skip()

	def OnbtnMultiClick( self, event ):
		event.Skip()

	def Onbtn0Click( self, event ):
		event.Skip()

	def OnbtnDotClick( self, event ):
		event.Skip()

	def OnbtnEqualClick( self, event ):
		event.Skip()

	def OnbtnDivClick( self, event ):
		event.Skip()


